//ex10_10_8.cpp
#include <iostream>
#include "list.h"

int main(void)
{
    using namespace std;

    List list;
    Item num;

    for(int i = 0; i < 4; i++)
    {
        cout << "Please enter a number: ";
        cin >> num;
        list.add(num);
        // list.visit(visit_item);
    }
    list.visit(visit_item);
}